package test.enba.security.auth.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/** 菜单表 */
@TableName("t_menu")
@ApiModel(value = "Menu对象", description = "菜单表")
public class Menu implements Serializable {

  private static final long serialVersionUID = 1L;

  @TableId(value = "id", type = IdType.AUTO)
  private Long id;

  private Long parentId;

  @ApiModelProperty("权限类型（0：目录 1：菜单 2：按钮）")
  private Integer type;

  @ApiModelProperty("菜单名称")
  private String menuName;

  @ApiModelProperty("权限码值")
  private String perms;

  @ApiModelProperty("排序")
  private Integer orderNum;

  @ApiModelProperty("菜单路径")
  private String url;

  @ApiModelProperty("图标")
  private String icon;

  @ApiModelProperty("状态（0：可用 1：禁用）")
  private Integer status;

  @ApiModelProperty("创建时间")
  private LocalDateTime createTime;

  @ApiModelProperty("更新时间")
  private LocalDateTime updateTime;

  @ApiModelProperty("删除（0：未删除 1：已删除）")
  private Integer deleted;

  public Long getId() {
    return id;
  }

  public void setId(Long id) {
    this.id = id;
  }

  public Long getParentId() {
    return parentId;
  }

  public void setParentId(Long parentId) {
    this.parentId = parentId;
  }

  public Integer getType() {
    return type;
  }

  public void setType(Integer type) {
    this.type = type;
  }

  public String getMenuName() {
    return menuName;
  }

  public void setMenuName(String menuName) {
    this.menuName = menuName;
  }

  public String getPerms() {
    return perms;
  }

  public void setPerms(String perms) {
    this.perms = perms;
  }

  public Integer getOrderNum() {
    return orderNum;
  }

  public void setOrderNum(Integer orderNum) {
    this.orderNum = orderNum;
  }

  public String getUrl() {
    return url;
  }

  public void setUrl(String url) {
    this.url = url;
  }

  public String getIcon() {
    return icon;
  }

  public void setIcon(String icon) {
    this.icon = icon;
  }

  public Integer getStatus() {
    return status;
  }

  public void setStatus(Integer status) {
    this.status = status;
  }

  public LocalDateTime getCreateTime() {
    return createTime;
  }

  public void setCreateTime(LocalDateTime createTime) {
    this.createTime = createTime;
  }

  public LocalDateTime getUpdateTime() {
    return updateTime;
  }

  public void setUpdateTime(LocalDateTime updateTime) {
    this.updateTime = updateTime;
  }

  public Integer getDeleted() {
    return deleted;
  }

  public void setDeleted(Integer deleted) {
    this.deleted = deleted;
  }

  @Override
  public String toString() {
    return "Menu{"
        + "id = "
        + id
        + ", parentId = "
        + parentId
        + ", type = "
        + type
        + ", menuName = "
        + menuName
        + ", perms = "
        + perms
        + ", orderNum = "
        + orderNum
        + ", url = "
        + url
        + ", icon = "
        + icon
        + ", status = "
        + status
        + ", createTime = "
        + createTime
        + ", updateTime = "
        + updateTime
        + ", deleted = "
        + deleted
        + "}";
  }
}
